
.LC0:
	.string "ScrnSize"
	
.LC1:
	.string "The screen is %i pixels wide by %i pixels high."


.globl _WinMain@16


MessageBoxPrintf:
	pushl %ebp
	movl %esp,%ebp
	subl $0x1000,%esp
	
	movl $0,-0x1000(%ebp) /* szBuffer */
	
	leal 16(%ebp),%eax
	movl %eax,12(%esp) 
	movl 12(%ebp),%eax /* szFormat */
	movl %eax,8(%esp)
	movl $1024,4(%esp) 
	leal -0x1000(%ebp),%eax /* szBuffer */
	movl %eax,0(%esp) 
	call _vsnprintf 
	subl $16,%esp 
	
	movl $0,12(%esp)
	movl 8(%ebp),%eax /* szCaption */
	movl %eax,8(%esp) 
	leal -0x1000(%ebp),%eax /* szBuffer */
	movl %eax,4(%esp) 
	movl $0,0(%esp) 
	call _MessageBoxA@16 
	subl $16,%esp
	
	movl $0,%eax
	leave
	ret 

_WinMain@16:
	pushl %ebp
	movl %esp,%ebp
	subl $0x1000,%esp
	
	movl $0,-0x1000(%ebp) /* cxScreen */
	movl $0,-0xffc(%ebp) /* cyScreen */
	
	movl $0,0(%esp)
	call _GetSystemMetrics@4
	subl $4,%esp
	movl %eax,-0x1000(%ebp) /* cxScreen */
	
	movl $1,0(%esp) 
	call _GetSystemMetrics@4 
	movl %eax,-0xffc(%ebp) /* cyScreen */
	
	movl -0xffc(%ebp),%eax /* cyScreen*/
	movl %eax,12(%esp)
	movl -0x1000(%ebp),%eax /* cxScreen */
	movl %eax,8(%esp)
	movl $.LC1,4(%esp)
	movl $.LC0,0(%esp)
	call MessageBoxPrintf 
	subl $16,%esp 
	
	movl $0,%eax
	leave
	ret 
	